package com.bean;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * 作者 ： 暗网
 * 创建时间：2017/2/14
 * 备注：  用户信息
 */

public class UserInfo extends RealmObject {
    @PrimaryKey
    private int id;//: "484",
    private String user_login;//: "15120645269",    用户名
    private String user_pass;//: "c535018ee946e10adc3949ba59abbe56e057f20f883e89af", 用户密码
    private String user_nicename;//: null, 真实名字(企业名字)
    private String user_email;//: "",邮箱
    private String user_no;//: null,  身份证号
    private String user_nopic;//: null,身份证正面照，相对于upload/userno目录
    private String user_nopic1;//: null,身份证反面照，相对于upload/userno目录
    private String user_nopic2;//
    private int user_no_status;//: "1",身份认证是否通过(3为已认证2为待审核1为未审核)
    private double user_money;//: "0.00000",账户余额
    private double user_proceeds;//: "0.00000",账户收益
    private String pay_pwd;//: "",支付密码
    private String user_url;//: "",用户个人网站
    private String avatar;//: "0",  用户头像
    private int sex;//: "0",性别；0：保密，1：男；2：女
    private String birthday;//: null, 生日
    private String signature;//: null,二维码
    private String last_login_ip;//: "117.29.209.47",最后登录ip
    private String last_login_time;//: "2016-03-31 15:11:13",最后登录时间
    private String create_time;//: "2016-03-31 15:01:53",注册时间
    private String user_activation_key;//: "",推广人
    private int user_status;//: "1",用户状态 0：禁用； 1：正常 ；2：未验证
    private int score;//: "0",用户积分
    private int user_type;//: "2",用户类型，1:admin ;2:铜会员 ;3:银会员 ;4:金会员
    private String province_id;//: "",省份ID
    private String city_id;//: "",城市id
    private String registerid;//: "030469f93d8",推送ID
    private double lat;//: "0.000000",经度
    private double lng;//: "0.000000",纬度
    private String geohash;//: "0",地址编码
    private float freeze_money;//: "0.00000", 冻结金额(用于理财）
    private int identity_type;//: "2",用户类型标识 1为个人 2为企业
    private String com_name;//: 法人名字
    private String bus_licence;//: "12345678909856",营业执照
    private String bank_name;//: 开户行
    private String card_no;//: "6217851700001135325",
    private String merchantsType;//商户入驻状态 1大商户 2一户一码  暂时未用
    //	private String paymentcode;//收款二维码  暂时未用

    private String vipdescribe;  //用户等级描述
    private String icon;         //用户等级 图标

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUser_login() {
        return user_login;
    }

    public void setUser_login(String user_login) {
        this.user_login = user_login;
    }

    public String getUser_pass() {
        return user_pass;
    }

    public void setUser_pass(String user_pass) {
        this.user_pass = user_pass;
    }

    public String getUser_nicename() {
        return user_nicename;
    }

    public void setUser_nicename(String user_nicename) {
        this.user_nicename = user_nicename;
    }

    public String getUser_email() {
        return user_email;
    }

    public void setUser_email(String user_email) {
        this.user_email = user_email;
    }

    public String getUser_no() {
        return user_no;
    }

    public void setUser_no(String user_no) {
        this.user_no = user_no;
    }

    public String getUser_nopic() {
        return user_nopic;
    }

    public void setUser_nopic(String user_nopic) {
        this.user_nopic = user_nopic;
    }

    public String getUser_nopic1() {
        return user_nopic1;
    }

    public void setUser_nopic1(String user_nopic1) {
        this.user_nopic1 = user_nopic1;
    }

    public String getUser_nopic2() {
        return user_nopic2;
    }

    public void setUser_nopic2(String user_nopic2) {
        this.user_nopic2 = user_nopic2;
    }

    public int getUser_no_status() {
        return user_no_status;
    }

    public void setUser_no_status(int user_no_status) {
        this.user_no_status = user_no_status;
    }

    public double getUser_money() {
        return user_money;
    }

    public void setUser_money(double user_money) {
        this.user_money = user_money;
    }

    public double getUser_proceeds() {
        return user_proceeds;
    }

    public void setUser_proceeds(double user_proceeds) {
        this.user_proceeds = user_proceeds;
    }

    public String getPay_pwd() {
        return pay_pwd;
    }

    public void setPay_pwd(String pay_pwd) {
        this.pay_pwd = pay_pwd;
    }

    public String getUser_url() {
        return user_url;
    }

    public void setUser_url(String user_url) {
        this.user_url = user_url;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getLast_login_ip() {
        return last_login_ip;
    }

    public void setLast_login_ip(String last_login_ip) {
        this.last_login_ip = last_login_ip;
    }

    public String getLast_login_time() {
        return last_login_time;
    }

    public void setLast_login_time(String last_login_time) {
        this.last_login_time = last_login_time;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUser_activation_key() {
        return user_activation_key;
    }

    public void setUser_activation_key(String user_activation_key) {
        this.user_activation_key = user_activation_key;
    }

    public int getUser_status() {
        return user_status;
    }

    public void setUser_status(int user_status) {
        this.user_status = user_status;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getUser_type() {
        return user_type;
    }

    public void setUser_type(int user_type) {
        this.user_type = user_type;
    }

    public String getProvince_id() {
        return province_id;
    }

    public void setProvince_id(String province_id) {
        this.province_id = province_id;
    }

    public String getCity_id() {
        return city_id;
    }

    public void setCity_id(String city_id) {
        this.city_id = city_id;
    }

    public String getRegisterid() {
        return registerid;
    }

    public void setRegisterid(String registerid) {
        this.registerid = registerid;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public String getGeohash() {
        return geohash;
    }

    public void setGeohash(String geohash) {
        this.geohash = geohash;
    }

    public float getFreeze_money() {
        return freeze_money;
    }

    public void setFreeze_money(float freeze_money) {
        this.freeze_money = freeze_money;
    }

    public int getIdentity_type() {
        return identity_type;
    }

    public void setIdentity_type(int identity_type) {
        this.identity_type = identity_type;
    }

    public String getCom_name() {
        return com_name;
    }

    public void setCom_name(String com_name) {
        this.com_name = com_name;
    }

    public String getBus_licence() {
        return bus_licence;
    }

    public void setBus_licence(String bus_licence) {
        this.bus_licence = bus_licence;
    }

    public String getBank_name() {
        return bank_name;
    }

    public void setBank_name(String bank_name) {
        this.bank_name = bank_name;
    }

    public String getCard_no() {
        return card_no;
    }

    public void setCard_no(String card_no) {
        this.card_no = card_no;
    }

    public String getMerchantsType() {
        return merchantsType;
    }

    public void setMerchantsType(String merchantsType) {
        this.merchantsType = merchantsType;
    }

    public String getVipdescribe() {
        return vipdescribe;
    }

    public void setVipdescribe(String vipdescribe) {
        this.vipdescribe = vipdescribe;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUserNoStateName() {
        String name = "";
        switch (user_no_status) {
            case 1:
                name = "未审核";
                break;
            case 2:
                name = "待审核";
                break;
            case 3:
                name = "审核通过";
                break;

        }
        return name;
    }

    public String getUserTypeName() {
        //1:admin ;2:铜会员 ;3:银会员 ;4:金会员
        String name = "";
        switch (user_type) {
            case 1:
                name = "admin";
                break;
            case 2:
                name = "铜牌会员";
                break;
            case 3:
                name = "银牌会员";
                break;
            case 4:
                name = "金牌会员";
                break;

        }
        return name;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "id=" + id +
                ", user_login='" + user_login + '\'' +
                ", user_pass='" + user_pass + '\'' +
                ", user_nicename='" + user_nicename + '\'' +
                ", user_email='" + user_email + '\'' +
                ", user_no='" + user_no + '\'' +
                ", user_nopic='" + user_nopic + '\'' +
                ", user_nopic1='" + user_nopic1 + '\'' +
                ", user_nopic2='" + user_nopic2 + '\'' +
                ", user_no_status=" + user_no_status +
                ", user_money=" + user_money +
                ", user_proceeds=" + user_proceeds +
                ", pay_pwd='" + pay_pwd + '\'' +
                ", user_url='" + user_url + '\'' +
                ", avatar='" + avatar + '\'' +
                ", sex=" + sex +
                ", birthday='" + birthday + '\'' +
                ", signature='" + signature + '\'' +
                ", last_login_ip='" + last_login_ip + '\'' +
                ", last_login_time='" + last_login_time + '\'' +
                ", create_time='" + create_time + '\'' +
                ", user_activation_key='" + user_activation_key + '\'' +
                ", user_status=" + user_status +
                ", score=" + score +
                ", user_type=" + user_type +
                ", province_id='" + province_id + '\'' +
                ", city_id='" + city_id + '\'' +
                ", registerid='" + registerid + '\'' +
                ", lat=" + lat +
                ", lng=" + lng +
                ", geohash='" + geohash + '\'' +
                ", freeze_money=" + freeze_money +
                ", identity_type=" + identity_type +
                ", com_name='" + com_name + '\'' +
                ", bus_licence='" + bus_licence + '\'' +
                ", bank_name='" + bank_name + '\'' +
                ", card_no='" + card_no + '\'' +
                ", merchantsType='" + merchantsType + '\'' +
                '}';
    }
}
